<?php

namespace app\model;

class DiscussModel extends BaseModel
{
    protected $table = 'discuss';

    public function user()
    {
        return $this->belongsTo(UsersModel::class, 'user_id');
    }

    public function topic()
    {
        return $this->belongsTo(TopicModel::class, 'topic_id');
    }
}